<?php
use yii\helpers\ArrayHelper;

?>
<table class="layui-table">
    <colgroup>
        <col>
        <col>
        <col width="300">
        <col width="150">
    </colgroup>
    <thead>
    <tr>
        <th>标题</th>
        <th>副标题</th>
        <th>更新时间</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <?php foreach ($list as $data): ?>
        <tr>
            <td><?= $data['title'] ?></td>
            <td><?= $data['subtitle'] ?></td>
            <td><?= $data['update_time'] ?></td>
            <td>
                <a href="/single-page/edit?single_page_id=<?= $data['single_page_id'] ?>"
                   class="layui-btn layui-btn-small">编辑</a>
            </td>
        </tr>
    <?php endforeach; ?>
    </tbody>
</table>
<div id="o-page" data-pages="<?= $pageArr['pageTotal'] ?>"></div>
<script>
    layui.use(['form'], function () {
        layui.form();
    });
</script>